package com.jiangyao.model.dto.backend;

import com.jiangyao.model.dto.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 班级专业成绩学期课程DTO
 *
 * @author: yangyongchuan
 * @create: 2020年09月01日 23:44
 */
@ApiModel("班级专业成绩学期课程DTO")
@Data
public class ClassUserScoreSemesterDTO implements BaseDTO {

	private static final long serialVersionUID = 865610709542678909L;
	/**
	 * 主键ID
	 */
	@ApiModelProperty(value = "主键ID")
	private Integer id;

	/**
	 * 课程
	 */
	@ApiModelProperty(value = "课程", example = "语文")
	@NotNull(message = "课程不能为空", groups = {Edit.class})
	@NotEmpty(message = "课程不能为空", groups = {Edit.class})
	private String subjectName;

	/**
	 * 学分
	 */
	@ApiModelProperty(value = "学分", example = "0")
	@NotNull(message = "学分不能为空", groups = {Edit.class})
	private Integer credit;

	/**
	 * 排序
	 */
	@ApiModelProperty(value = "排序", example = "0")
	@NotNull(message = "排序不能为空", groups = {Edit.class})
	private Integer sortOrder = 0;

}
